#include <iostream>
#include "./float.h"

#define RUNTEST(t,d) { cerr << endl << "Corriendo test " << #t << ": " << #d << endl; t(); cerr << "Terminado test " << #t << " OK!" << endl << endl; }

using namespace std;

void test1(){
	Float f1(1);
	cout << f1;
	Float f2(2);
	cout << f2;
	
	Float f3 = f1+f2;
	cout << f3;
}


void test2() {
	Float f1(2);
	Float f2(3);
	Float f3 = f1+f2;
	cout << f1;
	cout << f2;
	cout << f3 << endl;
}

void test3() {
	cout << "PREVIO SUMA" << endl;
	Float f1(3);
	cout << f1;
	Float f2(4);
	cout << f2;
	Float f3 = f1+f2;
	cout << "POST SUMA" << endl;
	cout << f1;
	cout << f2;
	cout << f3 << endl;
}

int main() {
	RUNTEST(test1,NICO);
	RUNTEST(test2,NICO);
	RUNTEST(test3,NICO);
	return 0;
	
}
